﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class Course
    {
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual int CourseID { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Curso")]
        public virtual String Name { get; set; }

        public virtual ICollection<Student> Students { get; set; }
        public virtual ICollection<AcademicOrganization> AcademicOrganizations { get; set; }


    }
}
